Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODTranslation


TranslateView

The TranslateView method translates the content of the source storage-unit view and stores the translated data in the destination storage-unit view.

ODTranslateResult TranslateView (
                           in ODStorageUnitView fromView, 
                           in ODStorageUnitView toView);
fromView
A reference to a storage-unit view; the focused value that contains the data to translate.
toView
A reference to a storage-unit view; the focused value that is to contain the translated data.
return value
The result of the translation. The return value is one of the following: kODCanTranslate or kODCannotTranslate.
DISCUSSION
The return value kODCanTranslate indicates that translation is allowed with the specified type. The return value kODCannotTranslate indicates that translation is not allowed with the specified type.

Your part calls this method when it wants to translate some data in a storage unit.

EXCEPTIONS
kODErrNoSysTranslationFacility
The underlying system translation facility is not present.
kODErrOutOfMemory
There is not enough memory to allocate the translated data.
This method may throw platform-specific exceptions.

SEE ALSO
The ODTranslateResult type (page 920).
"Translating Before Incorporating or Embedding" on page 349 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help